﻿/*****************************************
 * 
 *  copyright (c) by ylshen
 * 
 *  author : ylshen (syl.lucky@gmail.com)
 *  
 *  created at : 08-05-21
 * 
 **************************************** */

using System;
using System.Collections.Generic;
using System.Text;

namespace JYStockAnalyser.Model
{
    /// <summary>
    /// 用户
    /// </summary>
    [Serializable]
    public class User : DomainObject
    {
        string m_userName;
        string m_name;
        string m_password;
        string m_sex;
        string m_work;
        string m_contractNO;
        string m_email;
        ComputerUniqueNO m_uniqueNO;
        DateTime? m_endDate;

        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName
        {
            get { return m_userName; }
            set { m_userName = value; }
        }

        /// <summary>
        /// 姓名
        /// </summary>
        public string Name
        {
            get { return m_name; }
            set { m_name = value; }
        }

        public string Password
        {
            get { return m_password; }
            set { m_password = value; }
        }


        public string Sex
        {
            get { return m_sex; }
            set { m_sex = value; }
        }

        public string Work
        {
            get { return m_work; }
            set { m_work = value; }
        }

        public string ContractNO
        {
            get { return m_contractNO; }
            set { m_contractNO = value; }
        }

        public string Email
        {
            get { return m_email; }
            set { m_email = value; }
        }

        /// <summary>
        /// 与用户关联的电脑的唯一编号
        /// </summary>
        public ComputerUniqueNO UniqueNO
        {
            get { return m_uniqueNO; }
            set { m_uniqueNO = value; }
        }

        /// <summary>
        /// 到期日
        /// </summary>
        public DateTime? EndDate
        {
            get { return m_endDate; }
            set { m_endDate = value; }
        }

        /// <summary>
        /// 是否为试用用户
        /// </summary>
        public bool IsGuest
        {
            get;
            set;
        }
    }
}
